
.wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-top: 10px;
}

.sidebar {
  background: var(--glass, rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius, 12px);
  box-shadow: var(--card-shadow, 0 8px 20px rgba(0,0,0,0.2));
  position: sticky;
  top: 16px;
  backdrop-filter: blur(8px);
}
.sidebar-inner { padding: 14px; }
.sidebar-title {
  font: 800 18px/1.2 'Montserrat', system-ui, sans-serif;
  margin: 4px 0 12px;
  opacity: .9;
}

.edition-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  color: var(--white, #fff);
  border: 1px solid transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s, border-color .2s;
  text-align: left;
}
.edition-toggle:hover,
.edition-toggle:focus-visible {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  outline: none;
}
.edition-toggle .chevron {
  width: 10px; height: 10px;
  border-right: 2px solid var(--white, #fff);
  border-bottom: 2px solid var(--white, #fff);
  transform: rotate(-45deg);
  transition: transform .2s, opacity .2s;
  opacity: .7;
}
.edition-toggle[aria-expanded="true"] .chevron {
  transform: rotate(45deg);
  opacity: 1;
}

.submenu {
  list-style: none;
  padding: 6px 0 10px 6px;
  margin: 0 0 6px 0;
  display: none;
}
.edition-toggle[aria-expanded="true"] + .submenu {
  display: block;
}

.menu-item {
  width: 100%;
  display: block;
  text-align: left;
  color: var(--white, #fff);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 6px 6px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s, transform .2s;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  outline: none;
}
.menu-item.active {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
}

#content {
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius, 12px);
  box-shadow: var(--card-shadow, 0 8px 20px rgba(0,0,0,0.2));
  padding: 16px;
}

.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.game-list li {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 600;
}

.galerie-2025 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.galerie-2026 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


.img-card {
  background: rgba(0,0,0,0.075);
  border: 1px solid rgba(122,63,240,0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 8px 20px rgba(0,0,0,0.2));
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}
.img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(122,63,240,0.5);
}
.img-card .image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .2s;
}
.img-card:hover img { transform: scale(1.05); }
.img-card p {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  font-size: 16px;
}

.classement-wrapper {
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(122,63,240,0.4);
  border-radius: 16px;
  box-shadow: var(--card-shadow, 0 8px 20px rgba(0,0,0,0.2));
  color: var(--white, #fff);
}
.classement-card p {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(122,63,240,0.4);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 20px;
  transition: transform .2s, box-shadow .2s;
}

.classement-card .winner { color: #FFD700; }
.classement-card .second { color: #C0C0C0; }
.classement-card .third  { color: #cd7f32; }
.classement-card .rank   { color: #ffffff; }
.classement-card .player { color: var(--accent); }

.picture-wrapper { text-align: center; margin: 40px 0; }
.picture-container {
  position: relative;
  display: inline-block;
  max-width: 1100px;
max-height: 800px;
  overflow: hidden;
}
.picture-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
  border: 1px solid rgba(122,63,240,0.4);
  border-radius: 16px;
  box-shadow: var(--card-shadow, 0 8px 20px rgba(0,0,0,0.2));
}

button[id^="prevBtn-"], button[id^="prevBtn"] { left: 0; }
button[id^="nextBtn-"], button[id^="nextBtn"] { right: 0; }

button[id^="prevBtn"], button[id^="nextBtn"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 0;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}
   
.gallery-grid,
[id^="galleryGrid-"],
#galleryGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f2f2;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-grid .thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  display: block;
}

.gallery-grid .thumb:hover img { transform: scale(1.03); }
.lightbox,
[id^="lightbox-"] {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox[aria-hidden="false"],
[id^="lightbox-"][aria-hidden="false"] {
  display: flex;
}

.lightbox img,
[id^="lightboxImg-"] {
  max-width: 100px;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  user-select: none;
}

.lightbox button,
[id^="lbClose-"],
[id^="lbPrev-"],
[id^="lbNext-"] {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}
.lightbox button:hover,
[id^="lbClose-"]:hover,
[id^="lbPrev-"]:hover,
[id^="lbNext-"]:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close,
[id^="lbClose-"] {
  top: 16px;
  right: 16px;
  font-size: 24px;
  line-height: 1;
}

.lightbox-prev,
[id^="lbPrev-"] {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.lightbox-next,
[id^="lbNext-"] {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}


.lightbox,
[id^="lightbox-"] {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.lightbox[aria-hidden="false"],
[id^="lightbox-"][aria-hidden="false"] {
  display: flex;
}

.lightbox img,
[id^="lightboxImg-"] {
  max-width: 98vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  user-select: none;
}

.lightbox button,
[id^="lbClose-"],
[id^="lbPrev-"],
[id^="lbNext-"] {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white, #fff);
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}

.lightbox button:hover,
[id^="lbClose-"]:hover,
[id^="lbPrev-"]:hover,
[id^="lbNext-"]:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close,
[id^="lbClose-"] {
  top: 16px;
  right: 16px;
  font-size: 24px;
  line-height: 1;
}

.lightbox-prev,
[id^="lbPrev-"] {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.lightbox-next,
[id^="lbNext-"] {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.img-card a,
.img-card a:active,
.img-card a:focus {
  outline: none;        
  text-decoration: none;
}

